package taquin;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Image;

import java.awt.Graphics;
import java.awt.Image;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
import javax.swing.JPanel;
 
public class panel extends  JPanel {
 
	Image img;
        
        public panel(Image img){
              
                this.img = img;
        }
        public void changer(Image img){
            
            this.img = img;
    }
    
        public void paintComponent(Graphics g){
                
                Graphics2D g2d = (Graphics2D)g;
                
                
				
					
			
                g2d.drawImage(img, 0, 0, this.getWidth(), this.getHeight(), this);
				
					
				}
        }